/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.bar.carta.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.bar.carta.service.http.PlatoServiceSoap}.
 *
 * @author    pgonzalm
 * @see       com.bar.carta.service.http.PlatoServiceSoap
 * @generated
 */
public class PlatoSoap implements Serializable {
	public static PlatoSoap toSoapModel(Plato model) {
		PlatoSoap soapModel = new PlatoSoap();

		soapModel.setPlatoId(model.getPlatoId());
		soapModel.setTipoId(model.getTipoId());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setActivo(model.getActivo());
		soapModel.setImagen(model.getImagen());
		soapModel.setPrecio(model.getPrecio());

		return soapModel;
	}

	public static PlatoSoap[] toSoapModels(Plato[] models) {
		PlatoSoap[] soapModels = new PlatoSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static PlatoSoap[][] toSoapModels(Plato[][] models) {
		PlatoSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new PlatoSoap[models.length][models[0].length];
		}
		else {
			soapModels = new PlatoSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static PlatoSoap[] toSoapModels(List<Plato> models) {
		List<PlatoSoap> soapModels = new ArrayList<PlatoSoap>(models.size());

		for (Plato model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new PlatoSoap[soapModels.size()]);
	}

	public PlatoSoap() {
	}

	public long getPrimaryKey() {
		return _platoId;
	}

	public void setPrimaryKey(long pk) {
		setPlatoId(pk);
	}

	public long getPlatoId() {
		return _platoId;
	}

	public void setPlatoId(long platoId) {
		_platoId = platoId;
	}

	public long getTipoId() {
		return _tipoId;
	}

	public void setTipoId(long tipoId) {
		_tipoId = tipoId;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public boolean getActivo() {
		return _activo;
	}

	public boolean isActivo() {
		return _activo;
	}

	public void setActivo(boolean activo) {
		_activo = activo;
	}

	public long getImagen() {
		return _imagen;
	}

	public void setImagen(long imagen) {
		_imagen = imagen;
	}

	public float getPrecio() {
		return _precio;
	}

	public void setPrecio(float precio) {
		_precio = precio;
	}

	private long _platoId;
	private long _tipoId;
	private Date _createDate;
	private boolean _activo;
	private long _imagen;
	private float _precio;
}